﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Expertime.Multitude.Intranet.Security
{
    /// <summary>
    /// Recense les constantes utiles dans le domaine de la sécurité.
    /// </summary>
    public static class SecurityConstants
    {
        #region Groupes
        
        public const string GROUP_SHAREPOINT_MEMBERS = "Membres de Multitude ";
        public const string GROUP_SHAREPOINT_OWNERS = "Propriétaires de Multitude ";
        public const string GROUP_SHAREPOINT_VISITORS = "SharePoint Visitors";

        public const string GROUP_DIRECTION = "Direction";

        #endregion Groupes

        #region Role definitions

        /// <summary>
        /// Can view pages and list items and download documents.
        /// </summary>
        public const string ROLE_DEFINITION_READ = "Lecture";//"Read";

        /// <summary>
        /// Can view, add, update, and delete list items and documents.
        /// </summary>
        public const string ROLE_DEFINITION_CONTRIBUTE = "Collaboration";//"Contribute";

        /// <summary>
        /// Can view, add, update list items and documents, but not delete them 
        /// </summary>
        public const string ROLE_DEFINITION_CONTRIBUTE_NO_DELETE = "Collaboration sans suppression";//"ContributeNoDelete";

        /// <summary>
        /// Can view, add, update, delete, approve, and customize.
        /// </summary>
        public const string ROLE_DEFINITION_DESIGN = "Conception";//"Design";

        /// <summary>
        /// Has full control
        /// </summary>
        public const string ROLE_DEFINITION_FULL_CONTROL = "Contrôle total";//"Full Control";

        /// <summary>
        /// Can view specific lists, document libraries, list items, folders, or documents when given permissions.
        /// </summary>
        public const string ROLE_DEFINITION_LIMITED_ACCESS = "Accès limité";//"Limited Access";

        #region Others
        ///// <summary>
        ///// Can view pages, list items, and documents. Document types with server-side file handlers can be viewed in the browser but not downloaded.
        ///// </summary>
        //public const string ROLE_DEFINITION_VIEW_ONLY = "View Only";
        ///// <summary>
        ///// Can edit and approve pages, list items, and documents.
        ///// </summary>
        //public const string ROLE_DEFINITION_APPROVE = "Approve";
        ///// <summary>
        ///// Can create sites and edit pages, list items, and documents.
        ///// </summary>
        //public const string ROLE_DEFINITION_MANAGE_HIERARCHY = "Manage Hierarchy";
        ///// <summary>
        ///// Can view pages and documents, but cannot view historical versions or user permissions.
        ///// </summary>
        //public const string ROLE_DEFINITION_RESTRICTED_READ = "Restricted Read";
        ///// <summary>
        ///// Submit content to this site using Web Services.
        ///// </summary>
        //public const string ROLE_DEFINITION_RECORDS_CENTER_WEB_SERVICE_SUBMITTERS = "Records Center Web Service Submitters";
        #endregion
        #endregion
    }
}
